#ifndef __STDAFX_H__
#define __STDAFX_H__

#include <htc.h>
#define _XTAL_FREQ 4000000
#include <afx.h>
#include "TypeDefine.h"
#include "FlagDefine.h"
#include "Verify.h"
#include "Uart.h"
#include "WithPC.h"

#define Init_SetF 0.1
extern GFlags gFlags;

extern unsigned int SystemTick;
extern ErrState errState;
extern unsigned int SystemTick;
extern unsigned int ADTick;
extern unsigned int _27V_F;
extern unsigned int LN_Cur;
extern unsigned int ZF_Cur;

#define LN_PWM3 RC4
#define LN_PWM2 RC3
#define LN_PWM1 RC6
#define ZF_PWM  RC7

#define T2_50ms 195


#endif
